﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProDeletor
{
    class Task
    {
        public Deleter deleter;
        public Scheduler scheduler;
        private bool running;

        public Task(string path)
        {
            deleter = new Deleter(path);
            scheduler = new Scheduler();
            running = false;
        }

        public void runTask()
        {
            running = true;
            deleter.runDelete();
            running = false;
        }

        public bool Running
        {
            get { return running; }
        }

    }
}
